﻿@model ETA.Dtos.SimpleUserDto

<div class="headDiv">
    <div class="headerTitle">
        <div style="float: left">
            <p style="float: left">
                <img src="~/Content/Image/header/logo.png" /></p>
            <p class="logoTitle">政府直接监管的直通出国网络快车</p>
        </div>
        <div class="headerRighter">
            <ul class="nav navbar-nav">
                @if (Model != null)
                {
                    <li>
                        @Html.ActionLink(Model.UserName + "(" + Model.RolerName + ")", "Index", "I", null, new { id = "aUserName" })
                    </li>
                    <li>
                        @Html.ActionLink("注销", "LoginOut", "User")
                    </li>
                }
                else
                { 
                    <li>
                        @Html.ActionLink("游客 | 登录／注册", "Register", "User")
                    </li>
                }

                <li>
                    <a href="#">手机客户端</a>
                </li>
                <li class="dropdown">
                    @{
                        var langtype = string.Empty;
                        var langCookie = Request.Cookies["Localization.CultureName"];
                        if (langCookie != null)
                        {
                            langtype = langCookie.Value;
                        }
                        var flagClass = "famfamfam-flag-cn";
                        var lang = "中文";
                        switch (langtype)
                        {
                            case "cn": flagClass = "famfamfam-flag-cn"; lang = "中文"; break;
                            case "ja": flagClass = "famfamfam-flag-jp"; lang = "日本語"; break;
                        } 
                    }
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class='@flagClass'>&nbsp;&nbsp;&nbsp;&nbsp;</i><span>&nbsp;@lang</span><b class="caret"></b></a>
                    <ul class="dropdown-menu" style="min-width:0px;">
                        <li><a href="/Localization/ChangeCulture?cultureName=cn"><i class="famfamfam-flag-cn">&nbsp;&nbsp;&nbsp;&nbsp;</i>&nbsp;中文</a></li>
                        <li><a href="/Localization/ChangeCulture?cultureName=ja"><i class="famfamfam-flag-jp">&nbsp;&nbsp;&nbsp;&nbsp;</i>&nbsp;日本語</a></li>
                    </ul>
                </li>
            </ul>
        </div>
    </div>
</div>
<div class="clear"></div>
<div class="customNav clearfix">
    <ul>
        <li id="nav1" class="indexLi">@Html.ActionLink(LocalizationHelpers.InnerLang(this.ViewContext.HttpContext, "Index"), "Index", "Home")</li>
        <li id="nav2" class="garyLiZ dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">@Html.L("AboutUs")</a>
            <ul class="dropdown-menu" id="menuDownIndex">
                <li>@Html.ActionLink(Html.L("SpecialOfETA"), "SpecialOfETA", "Home")</li>
                <li>@Html.ActionLink(Html.L("ContactUs"), "ContactUs", "Home")</li>
            </ul>
        </li>
        <li id="nav3" class="garyLiZ">@Html.ActionLink(Html.L("AboutStudent"), "AboutETA", "Home")</li>
        <li id="nav4" class="garyLi">@Html.ActionLink(Html.L("IntroduceOfProject"), "IntroduceOfProject", "Home")</li>
        <li id="nav5" class="garyLi">@Html.ActionLink(Html.L("FlowOfGoJpan"), "FlowOfGoJpan", "Home")</li>
        <li id="nav6" class="garyLi">@Html.ActionLink(LocalizationHelpers.InnerLang(this.ViewContext.HttpContext, "QA"), "Index", "QA")</li>
    </ul>
</div>
